package com.cn.hu.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * CustomerContacts entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "customer_contacts", catalog = "huarui")
public class CustomerContacts implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer departmentId;
	private String name;
	private Integer sex;
	private Integer age;
	private String tel;
	private String mobile;
	private String email;
	private Timestamp createDate;
	private Timestamp modifyDate;
	private Integer status;
	private String bak;

	// Constructors

	/** default constructor */
	public CustomerContacts() {
	}

	/** minimal constructor */
	public CustomerContacts(Timestamp createDate, Timestamp modifyDate) {
		this.createDate = createDate;
		this.modifyDate = modifyDate;
	}

	/** full constructor */
	public CustomerContacts(Integer departmentId, String name, Integer sex,
			Integer age, String tel, String mobile, String email,
			Timestamp createDate, Timestamp modifyDate, Integer status,
			String bak) {
		this.departmentId = departmentId;
		this.name = name;
		this.sex = sex;
		this.age = age;
		this.tel = tel;
		this.mobile = mobile;
		this.email = email;
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.status = status;
		this.bak = bak;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "department_id")
	public Integer getDepartmentId() {
		return this.departmentId;
	}

	public void setDepartmentId(Integer departmentId) {
		this.departmentId = departmentId;
	}

	@Column(name = "name", length = 50)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "sex")
	public Integer getSex() {
		return this.sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	@Column(name = "age")
	public Integer getAge() {
		return this.age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	@Column(name = "tel", length = 20)
	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	@Column(name = "mobile", length = 11)
	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	@Column(name = "email", length = 50)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "create_date", nullable = false, length = 19)
	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	@Column(name = "modify_date", nullable = false, length = 19)
	public Timestamp getModifyDate() {
		return this.modifyDate;
	}

	public void setModifyDate(Timestamp modifyDate) {
		this.modifyDate = modifyDate;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "bak", length = 100)
	public String getBak() {
		return this.bak;
	}

	public void setBak(String bak) {
		this.bak = bak;
	}

}